import Cookies from 'js-cookie';
let set = Cookies.get('MY_SET');
let key, value;
if (set) {
    set = JSON.parse(set);
    key = set.key;
    value = set.value;
}

/* 组件默认设置 */
const defaultSettings = {
    title: '淄博金融风控管理平台',

    /**
     * @type {boolean} true | false
     * @description Whether show the settings right-panel
     */
    showSettings: true,

    /**
     * @type {boolean} true | false
     * @description Whether need tagsView
     */
    // tagsView: true,
    tagsView: 'tagsView' == key ? value : true,
    /**
     * @type {boolean} true | false
     * @description Whether fix the header
     */
    fixedHeader: 'fixedHeader' == key ? value : true,

    /**
     * @type {boolean} true | false
     * @description Whether show the logo in sidebar
     */
    sidebarLogo: 'sidebarLogo' == key ? value : true,

    /**
     * @type {string | array} 'production' | ['production', 'development']
     * @description Need show err logs component.
     * The default is only used in the production env
     * If you want to also use it in dev, you can pass ['production', 'development']
     */
    errorLog: 'production'
}
export default defaultSettings
